package com.rc.saas.mini.minip.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 登录信息
 */
public class LoginInfoVo implements Serializable {
    /**
     * 会话ID
     */
    @ApiModelProperty(value = "会话ID token")
    private String token;


    /**
     * 运营商
     */
    @ApiModelProperty(value = "运营商参数，无用")
    private String tenantCode;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long memberId;

    /**
     * 微信呢称
     */
    @ApiModelProperty(value = "微信呢称，无呢称引导用户去更新用户信息")
    private String nickname;

    /**
     * 呢称app
     */
    @ApiModelProperty(value = "微信呢称2，无效")
    private String nickname2;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    private String mobile;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String headImg;


    @ApiModelProperty(value = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    /**
     * 车牌号
     */
    @ApiModelProperty(value = "车牌号，无数据则为新用户")
    private String carNumber;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    private String sex;

    /**
     * 会员类型(0个人 1企业主帐户 2企业子帐户 3互联互通用户)
     */
    @ApiModelProperty(value = "会员类型 0个人，无效")
    private String memberType;

    /**
     * 上次进入客服消息页面时间
     */
    @ApiModelProperty(value = "上次进入客服消息页面时间")
    private Date lastCustomMsgTime;

    /**
     * 上次进入系统消息页面时间
     */
    @ApiModelProperty(value = "上次进入系统消息页面时间")
    private Date lastPlatformMsgTime;

    @ApiModelProperty(value = "公众号openId")
    private String wechatOpenid;

    @ApiModelProperty(value = "小程序openId")
    private String miniOpenid;
    @ApiModelProperty(value = "小程序Unionid")
    private String miniUnionid;
    @ApiModelProperty(value = "小程序SessionKey")
    private String miniSessionKey;

    @ApiModelProperty(value = "小程序miniOriginalid")
    private String miniOriginalid;

    @ApiModelProperty(value = "阿里aliUserId")
    private String aliUserId;

    public String getAliUserId() {
        return aliUserId;
    }

    public void setAliUserId(String aliUserId) {
        this.aliUserId = aliUserId;
    }

    public String getWechatOpenid() {
        return wechatOpenid;
    }

    public void setWechatOpenid(String wechatOpenid) {
        this.wechatOpenid = wechatOpenid;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getMiniOriginalid() {
        return miniOriginalid;
    }

    public void setMiniOriginalid(String miniOriginalid) {
        this.miniOriginalid = miniOriginalid;
    }

    public String getMiniOpenid() {
        return miniOpenid;
    }

    public void setMiniOpenid(String miniOpenid) {
        this.miniOpenid = miniOpenid;
    }

    public String getMiniUnionid() {
        return miniUnionid;
    }

    public void setMiniUnionid(String miniUnionid) {
        this.miniUnionid = miniUnionid;
    }

    public String getMiniSessionKey() {
        return miniSessionKey;
    }

    public void setMiniSessionKey(String miniSessionKey) {
        this.miniSessionKey = miniSessionKey;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getNickname2() {
        return nickname2;
    }

    public void setNickname2(String nickname2) {
        this.nickname2 = nickname2;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMemberType() {
        return memberType;
    }

    public void setMemberType(String memberType) {
        this.memberType = memberType;
    }

    public Date getLastCustomMsgTime() {
        return lastCustomMsgTime;
    }

    public void setLastCustomMsgTime(Date lastCustomMsgTime) {
        this.lastCustomMsgTime = lastCustomMsgTime;
    }

    public Date getLastPlatformMsgTime() {
        return lastPlatformMsgTime;
    }

    public void setLastPlatformMsgTime(Date lastPlatformMsgTime) {
        this.lastPlatformMsgTime = lastPlatformMsgTime;
    }
}
